<?php
namespace app\index\controller;
use app\common\controller\IndexBase;

class Index extends IndexBase
{
    public function index()
    {
        $this->redirect('/user/');
        return $this->fetch('index');
    }
    public function yubu()
    {
        $share = \app\index\model\Wxshare::get_share();
        $appid = $share['appid'];
        $nonceStr = $share['nonceStr'];
        $signature = $share['signature'];
        $timestamp = $share['timestamp'];
        return $this->fetch('yubu',[
                'appid' => $appid,
                'nonceStr' => $nonceStr,
                'signature' => $signature,
                'timestamp' => $timestamp,
            ]);
    }
}
